package org.wenhuayuan.project.main.http.api

import org.json.JSONObject
import org.wenhuayuan.library.resful.HiCall
import org.wenhuayuan.library.resful.annotation.Filed
import org.wenhuayuan.library.resful.annotation.GET
import org.wenhuayuan.library.resful.annotation.POST
import org.wenhuayuan.project.main.model.CourseNotice
import org.wenhuayuan.project.main.model.UserProfile

interface AccountApi {
    @GET("cities")
    fun listCities(@Filed("name") name: String):HiCall<JSONObject>

    @POST("user/login")
    fun login(@Filed("userName")userName: String, @Filed("password")password:String) : HiCall<String>

    @POST("user/registration")
    fun register(@Filed("userName")userName: String, @Filed("password")password: String, @Filed("imoocId")imoocId: String, @Filed("orderId")orderId: String) : HiCall<String>

    @GET("user/profile")
    fun profile():HiCall<UserProfile>

    @GET("notice")
    fun notice():HiCall<CourseNotice>

}